Skip to content

Add --retry flag for mise install.#6487

Closed
reitermarkus wants to merge 2 commits intojdx:mainfrom
reitermarkus:install-retry
Closed

Add --retry flag for mise install.#6487
reitermarkus wants to merge 2 commits intojdx:mainfrom
reitermarkus:install-retry

Conversation

@reitermarkus
Copy link

Closes #6429.

Copilot AI review requested due to automatic review settings September 30, 2025 14:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a --retry flag to the mise install command to handle transient installation failures such as network issues. The implementation includes automatic retry logic with exponential backoff and proper error handling for retryable errors.

  • Adds --retry flag to mise install and mise install-into commands
  • Implements retry logic with exponential backoff for transient errors
  • Adds error detection for retryable network-related errors

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/cli/install.rs Adds the --retry CLI flag to the install command
src/cli/install_into.rs Adds the --retry CLI flag to the install-into command
src/toolset/mod.rs Adds retry field to InstallOptions struct and passes it through
src/install_context.rs Adds retry field to InstallContext struct
src/backend/mod.rs Implements the core retry logic with exponential backoff and error handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jdx
Copy link
Owner

jdx commented Sep 30, 2025

not sure I want this now that we have #6444

@reitermarkus
Copy link
Author

Okay, I missed this since it was not mentioned in the discussion or shows up as a linked PR there.

I saw the contributing guide mentions https://github.com/jdx/mise/issues/3859, yet I cannot view it since issues are now completely disabled.

What is the reason for not tracking issues as issues which would show up in linked PRs and vice-versa?

Quite ironic that opening a discussion first still ended up creating wasted effort.

@roele
Copy link
Contributor

roele commented Sep 30, 2025

Sorry for that @reitermarkus, i usually mention the PRs in the discussion which i missed to do.

@reitermarkus
Copy link
Author

@roele, no worries.

@jdx jdx closed this Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants